package org.itboys.mobile.entity.mysql.reward;

import org.itboys.mongodb.entity.BaseMySqlEntity;

import java.math.BigDecimal;

/**
 * 作者：zzq
 * 时间：2018/1/29
 * 描述：充值配置
 */
public class CooChargeReward extends BaseMySqlEntity{
    private String name;//名称
    private Integer memberLevel;//会员级别  1，普卡会员  2，银卡会员  3，金卡会员
    private BigDecimal amount;//充值金额
    private BigDecimal limitAmount;//赠送额度
    private BigDecimal frozenAmount;//每天释放额度
    private String remark;//


    public Integer getMemberLevel() {
        return memberLevel;
    }

    public void setMemberLevel(Integer memberLevel) {
        this.memberLevel = memberLevel;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getLimitAmount() {
        return limitAmount;
    }

    public void setLimitAmount(BigDecimal limitAmount) {
        this.limitAmount = limitAmount;
    }

    public BigDecimal getFrozenAmount() {
        return frozenAmount;
    }

    public void setFrozenAmount(BigDecimal frozenAmount) {
        this.frozenAmount = frozenAmount;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String  getMemberLevelStr(){
        String memberLevelStr="";
        if(memberLevel==null)return memberLevelStr;
        switch (memberLevel) {
            case 1:
                memberLevelStr="普卡会员";
                break;
            case 2:
                memberLevelStr="银卡会员";
                break;
            case 3:
                memberLevelStr="金卡会员";
                break;
            default:
                break;
        }
        return memberLevelStr;
    }
}
